package net.qiqbframework.commandhandling;

import net.qiqbframework.common.resolving.ResolveAttributes;
import net.qiqbframework.modelling.domain.AggregateCreationPolicy;

import java.lang.annotation.*;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@ResolveAttributes
public @interface CreationPolicy {

    AggregateCreationPolicy value() default AggregateCreationPolicy.ALWAYS;
}
